package com.lagou.nacos.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA by ChouFy on 2020-06-13.
 *
 * @author chouFy
 */
@RestController
@RequestMapping("/nacosTest")
@RefreshScope
public class TestController {


    @Value("${laogu.message}")
    private String message;


    @RequestMapping("")
    public Object nacos(){
        return "nacos :" + message;
    }
}
